/*
 * =====================================================================================
 *
 *       Filename:  NewCorp.cc
 *
 *    Description:
 *
 *
 *        Version:  1.0
 *        Created:  01/07/2022 10:56:21 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "NewCorp.h"
CNewCorp::CNewCorp(IProduct* pproduct) {
    this->m_pProduct = pproduct;
}

CNewCorp::~CNewCorp(void) {
}

void CNewCorp::MakeMoney() {
    //每个公司都是一样，先生产
    this->m_pProduct->BeProducted();
    //然后销售
    this->m_pProduct->BeSelled();
}
